package com.bailiban.controller;

import com.bailiban.entity.Oversea;
import com.bailiban.service.OverseaService;
import com.bailiban.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zhulang
 * @Classname OverseaController
 * @Description TODO
 * @Date 2020/4/5 18:09
 */
@RestController
@RequestMapping("/oversea")
public class OverseaController {
    @Autowired
    private OverseaService overseaService;
    @RequestMapping("/all")
    public Result findAll(){
        List<Oversea> all = overseaService.findAll();
        return Result.success(all);
    }
}
